using UnityEngine;

public class SelectableButtonTypeGameLeaderBoard : SelectableButton
{
	[SerializeField]
	private GameObject grid;

	private TypeGame _typeGame;

	public GameObject Grid
	{
		get
		{
			return grid;
		}
	}

	public TypeGame TypeGame
	{
		get
		{
			return _typeGame;
		}
		set
		{
			_typeGame = value;
		}
	}

	public override void Select(bool select)
	{
		if (select && !selected)
		{
			grid.GetComponent<LeaderBoardTypeGameUI>().Show(TypeGame);
		}
		grid.SetActive(select);
		base.Select(select);
	}
}
